package peterka.ecka;

/**
 *
 * @author mpeterka
 */
public class Logger {

    public static void debug(String message) {
        System.out.println(message);
    }

    public static void debug(Object obj) {
        debug(obj != null ? obj.toString() : "null");
    }

    public static void error(String message) {
        System.err.println(message);
    }

    public static void error(Exception e, String message) {
        if (message != null) {
            System.err.println(message);
        }
        e.printStackTrace();
    }

    public static void error(Exception e) {
        error(e, null);
    }
}
